Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request mainly focuses on the integration of a new cognitive service module for computer vision (CV) and the refactoring of the
VideoAnalyzer
feature in the AIHub. The most significant changes include the addition of a new CV module in the infrastructure, modifications to theVideoAnalyzerController
in the AIHub, and updates to the video player in the AIHub's user interface.Infrastructure changes:
infra/main.tf
: Added a new variablecv_name
to the locals block and a new moduleComputer Vision
that uses thecv_name
variable. [1] [2]infra/modules/cv/main.tf
andinfra/modules/cv/variables.tf
: Created a new cognitive service account for computer vision. [1] [2]infra/modules/st/main.tf
: Added a new storage containerimage-analyzer
for the video analyzer feature.infra/variables.tf
: Added a new variablecv_name
with a default value.AIHub changes:
src/AIHub/Controllers/VideoAnalyzerController.cs
: Refactored theDenseCaptionVideo
method to use a new model for the cognitive service, improved code readability by using constants, and updated the payload structure for the chat API call. [1] [2] [3] [4]src/AIHub/Views/VideoAnalyzer/VideoAnalyzer.cshtml
: Replaced the iframe for video display with a video tag.src/AIHub/appsettings.template.json
: Updated the configuration for theVideoAnalyzer
feature.UI changes:
src/AIHub/wwwroot/js/ui/videoanalyzer.js
: Updated the video source setting method to support the new video tag in the user interface.